import React from 'react';
import { Route } from 'react-router-dom';
import routerConfig from './routerConfig';

function getRoutes(routes) {
    return routes.map((rt, i) => {
        <Route />
    })
}

export default function RootRouter() {
    return (
        <>
            {getRoutes(routerConfig)}
        </>
    )
}
